package com.daka.service.impl;

import com.daka.dao.GroupRecruitVolunteerMapper;
import com.daka.entity.GroupRecruitVolunteer;
import com.daka.service.GroupRecruitVolunteerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by yangx
 * Date: 2016/8/5 0005
 * Time: 14:43
 */
@Service("groupRecruitVolunteerService")
@Transactional
public class GroupRecruitVolunteerServiceImpl implements GroupRecruitVolunteerService {

    @Autowired
    private GroupRecruitVolunteerMapper groupRecruitVolunteerMapper;

    public int insert(GroupRecruitVolunteer po){

        return groupRecruitVolunteerMapper.insert(po);
    }

    public int update(GroupRecruitVolunteer po){
        return groupRecruitVolunteerMapper.updateByPrimaryKeySelective(po);
    }

    public List<GroupRecruitVolunteer> queryByEntity(GroupRecruitVolunteer po){
        return groupRecruitVolunteerMapper.selectByStatement(po);
    }

    public GroupRecruitVolunteer selectByPrimaryKey(long id){
        return groupRecruitVolunteerMapper.selectByPrimaryKey(id);
    }
}
